from sqlalchemy import create_engine
# 使用模块创建单例模式
class baseEngine:
    def getEngine(self):
        return create_engine('mysql+pymysql://tushare:tushare123@localhost/tushare?charset=utf8')

engine = baseEngine()